#include "TestClassA.h"
#include <sstream>
#include <windows.h>



OOP_DEF_COMMON (TestClassA);



TestClassA::TestClassA () : OOP::Object (), _val (0)
{
	std::ostringstream sout;
	sout << "0x" << this << ": TestClassA ()" << std::endl;
	OutputDebugStringA (sout.str ().c_str ());
}



TestClassA::~TestClassA ()
{
	std::ostringstream sout;
	sout << "0x" << this << ": ~TestClassA ()" << std::endl;
	OutputDebugStringA (sout.str ().c_str ());
}



TestClassA&
TestClassA::operator= (const TestClassA& r_source)
{
	_val = r_source._val;
	__contentModified ();
	return *this;
}



void
TestClassA::read (OOP::ResourceLoader& r_loader)
{
	r_loader >> _val;
}



void
TestClassA::write (OOP::ResourceSaver& r_saver) const
{
	r_saver << _val;
}